import json

import requests


url="http://127.0.0.1:8000/v1/tokens"

data1={
    'username': 'zhaoliying',
    'password': '123456',
    'carts': 0
}
data2={
    'username': 'meimei1',
    'password': '123456',
    'carts': 0
}

resp=requests.post(url=url,
                   json=data2)
print(json.dumps(resp.json(),indent=4))